﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMasterPage.Master" AutoEventWireup="true"
    CodeBehind="RenewalInsurance.aspx.cs" Inherits="InsuranceVehicle.RenewalInsurance" %>

<%@ Register Src="UserMenuControl.ascx" TagName="UserMenuControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    Renewal Insurance
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:UserMenuControl ID="UserMenuControl1" runat="server" SelectedMenu="renewal" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
    <asp:Panel ID="panelRenewal" runat="server">
        <center>
            <h2 style="font-size: 20px">
                Renewal Insurance</h2>
            <div style="margin: auto; width: 500px">
                <asp:Label ID="lblSuccess" Visible="false" runat="server" Font-Size="15px" ForeColor="Red"></asp:Label><br />
                <br />
                <asp:Label ID="Label1" runat="server" CssClass="label" Text="Policy ID"></asp:Label><br />
                <asp:DropDownList ID="cbbPolicyId" CssClass="dropdown" Width="300px" runat="server"
                    OnSelectedIndexChanged="cbbInsuType_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>
                <br />
                <br />
                <div style="width: 500px; margin: auto; border: 2px solid #5e0b07; border-radius: 15px">
                    <div style="background-color: #5e0b07; width: 481px; margin: auto; color: White;
                        padding: 10px; border-radius: 11px">
                        <asp:Label ID="Label6" runat="server" Text="Your Policy Infomation"></asp:Label></div>
                    <div style="padding: 15px">
                        Your fullname:
                        <asp:Label ID="lblCustomername" CssClass="label" runat="server" Font-Bold="true"></asp:Label><br />
                        Insurance Type:
                        <asp:Label ID="lblInsuranceType" CssClass="label" runat="server" Font-Bold="true"></asp:Label><br />
                        Control plate of your vehicle:
                        <asp:Label ID="lblVehicle" CssClass="label" runat="server" Font-Bold="true"></asp:Label><br />
                        Policy Date:
                        <asp:Label ID="lblPolicyDate" runat="server" CssClass="label" Font-Bold="true"></asp:Label><br />
                    </div>
                </div>
                <%-----------%>
                <br />
                <br />
                <%-----------%>
                <asp:Label ID="Label2" runat="server" CssClass="label" Text="Duration (Year)"></asp:Label><br />
                <asp:DropDownList ID="cbbDuration" CssClass="dropdown" Width="300px" runat="server"
                    OnSelectedIndexChanged="cbbDuration_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>
                <%-----------%>
                <br />
                <br />
                <%-----------%>
                <asp:Label ID="Label3" runat="server" CssClass="label" Text="Amount: "></asp:Label>
                <asp:Label ID="lblAmount" Font-Size="15px" Font-Bold="true" runat="server"></asp:Label><br />
                <asp:Label ID="lblAmountHidden" runat="server" Visible="false"></asp:Label>
                <%-----------%>
                <br />
                <br />
                <asp:RadioButton ID="rdPayOffline" Checked="true" runat="server" GroupName="payment"
                    AutoPostBack="true" OnCheckedChanged="rdPayOffline_CheckedChanged" Text="Payment Directly" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:RadioButton ID="rdPayOnline" runat="server" GroupName="payment" AutoPostBack="true"
                    OnCheckedChanged="rdPayOnline_CheckedChanged" Text="Payment Online" />
                <br />
                <br />
                <asp:Panel ID="panelPayment" runat="server">
                    <div style="margin: auto; border: 1px solid rgb(209, 209, 209); width: 450px; padding: 15px;
                        border-radius: 15px">
                        <asp:Label ID="Label4" runat="server" Text="Bank Account name"></asp:Label><br />
                        <asp:TextBox ID="txtAccName" Width="300px" runat="server"></asp:TextBox><br />
                        <asp:Label ID="lblErrAccName" runat="server" Font-Italic="True" ForeColor="Red" Visible="False"></asp:Label>
                        <br />
                        <br />
                        <asp:Label ID="Label5" runat="server" Text="Bank Account number"></asp:Label><br />
                        <asp:TextBox ID="txtAccNum" Width="300px" runat="server"></asp:TextBox><br />
                        <asp:Label ID="lblErrAccNum" runat="server" Font-Italic="True" ForeColor="Red" Visible="False"></asp:Label>
                    </div>
                </asp:Panel>
                <br />
                <asp:Button ID="btnRenewal" runat="server" Text="Renewal" CssClass="button" CausesValidation="false"
                    OnClick="btnRenewal_Click" />
            </div>
        </center>
    </asp:Panel>
    <asp:Panel ID="panelError" runat="server">
        <center>
            <h2 style="font-size: 20px; color: red">
                You must Login to Renewal insurance</h2>
        </center>
    </asp:Panel>
</asp:Content>
